import request from '@/utils/request'

export function initSqldata(data) {
  return request({
    url: 'api/perHome/init',
    method: 'post',
    data
  })
}

export function initTodaySqlData(data) {
  return request({
    url: 'api/perHome/initTodaySqlData',
    method: 'get'
  })
}

export function selectOneWeek() {
  return request({
    url: 'api/perHome/selectOneWeek',
    method: 'get'
  })
}

export function selectTwoWeek() {
  return request({
    url: 'api/perHome/selectTwoWeek',
    method: 'get'
  })
}

export default { initSqldata, initTodaySqlData, selectOneWeek, selectTwoWeek }
